#ifndef HEADER_VZENITH_TOOLS_H
#define HEADER_VZENITH_TOOLS_H

#include "curl/curl.h"

void calculate_md5(
  char *output,
  const char *input);

CURLcode encode_base64(
  char **output,
  size_t *outsize,
  const char *input,
  size_t insize);

CURLcode md5_base64(
  char **output,
  size_t *outsize,
  const char *input);

CURLcode calculate_signature(
  char **output,
  size_t *outsize,
  const char *key,
  int keylen,
  const char *input,
  size_t insize);


#endif // HEADER_VZENITH_TOOLS_H
